package com.tablefood.domain;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * ShopOrder entity. @author MyEclipse Persistence Tools
 */

public class ShopOrder implements java.io.Serializable {

	// Fields

	private Long orderid;
	private ShopUser shopUser;
	private Double amount;
	private Integer status;
	private String address;
	private String express;
	private String expressno;
	private String tradeno;
	private Timestamp createTime;
	private Timestamp updateTime;
	private Set shopOrderDetails = new HashSet(0);

	// Constructors

	/** default constructor */
	public ShopOrder() {
		amount = 0.00 ;
		status = 0;
		address = "无";
		express = "默认快递";
		expressno = "默认";
		tradeno = "默认";
		createTime = new Timestamp(System.currentTimeMillis()); 
		updateTime = new Timestamp(System.currentTimeMillis()); 
	}

	/** minimal constructor */
	public ShopOrder(ShopUser shopUser, Double amount, Integer status,
			String address, String express, String expressno, String tradeno,
			Timestamp createTime, Timestamp updateTime) {
		this.shopUser = shopUser;
		this.amount = amount;
		this.status = status;
		this.address = address;
		this.express = express;
		this.expressno = expressno;
		this.tradeno = tradeno;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	/** full constructor */
	public ShopOrder(ShopUser shopUser, Double amount, Integer status,
			String address, String express, String expressno, String tradeno,
			Timestamp createTime, Timestamp updateTime, Set shopOrderDetails) {
		this.shopUser = shopUser;
		this.amount = amount;
		this.status = status;
		this.address = address;
		this.express = express;
		this.expressno = expressno;
		this.tradeno = tradeno;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.shopOrderDetails = shopOrderDetails;
	}

	// Property accessors

	public Long getOrderid() {
		return this.orderid;
	}

	public void setOrderid(Long orderid) {
		this.orderid = orderid;
	}

	public ShopUser getShopUser() {
		return this.shopUser;
	}

	public void setShopUser(ShopUser shopUser) {
		this.shopUser = shopUser;
	}

	public Double getAmount() {
		return this.amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getExpress() {
		return this.express;
	}

	public void setExpress(String express) {
		this.express = express;
	}

	public String getExpressno() {
		return this.expressno;
	}

	public void setExpressno(String expressno) {
		this.expressno = expressno;
	}

	public String getTradeno() {
		return this.tradeno;
	}

	public void setTradeno(String tradeno) {
		this.tradeno = tradeno;
	}

	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public Timestamp getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

	public Set getShopOrderDetails() {
		return this.shopOrderDetails;
	}

	public void setShopOrderDetails(Set shopOrderDetails) {
		this.shopOrderDetails = shopOrderDetails;
	}

}